﻿namespace Smugmug
{
    public class LoginWithPassword : ILoginMethod
    {
        public LoginWithPassword(string apiKey, string emailAddress, string password)
        {
            ApiKey = apiKey;
            EmailAddress = emailAddress;
            Password = password;
        }

        public string ApiKey { get; private set; }
        public string EmailAddress { get; private set; }
        public string Password { get; private set; }

        public Login Login(SmugmugClient client)
        {
            return client.LoginWithPassword(ApiKey, EmailAddress, Password, null, null, null);
        }
    }
}